package com.gzy.blog.blog.dao;

import java.util.List;

import com.gzy.blog.blog.entity.Article;
import com.gzy.blog.common.PageModel;

public interface ArticleDao {
	PageModel<Article> pageArticle(int pageNo, int pageSize);

	List<Article> listWellArticle();

	PageModel<Article> getArticlePageByUserId(Integer userId);

	Article getArticleById(Integer id);

	List<Article> listWellAticleSelf(Integer userId);

	List<Article> listArticleCategory(Integer userId);

	void add(Article article);

	void delete(Integer id);
}
